package cn.iocoder.yudao.module.hs.controller.admin.picktask.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.*;
import javax.validation.constraints.*;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 拣货任务新增/修改 Request VO")
@Data
public class PickTaskSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16419")
    private Long id;

    @Schema(description = "任务单号", requiredMode = Schema.RequiredMode.REQUIRED)
    private String code;

    @Schema(description = "出库单ID", example = "5090")
    private Long shipOrderId;

    @Schema(description = "发货单号")
    private String shipOrderCode;

    @Schema(description = "状态：TO_BE_PICKED-待拣货；PICKING-拣货中；PICK_OVER-拣货完成", requiredMode = Schema.RequiredMode.REQUIRED)
    private String status;

    @Schema(description = "任务类型：PICK-拣货；LOW_BATTERY-低电量更换标签", example = "1")
    private String taskType;

    @Schema(description = "待更换的低电量RFID编码")
    private String rfidCode;

    @Schema(description = "仓库分类：生产仓库-PRODUCTION；三方仓库-THIRD")
    private String warehouseType;

    @Schema(description = "分派人ID", example = "30666")
    private Long assignUserId;

    @Schema(description = "分派人名", example = "李四")
    private String assignUserName;

    @Schema(description = "仓库ID", example = "30666")
    private Long warehouseId;

    @Schema(description = "仓库部门ID", example = "30666")
    private Long deptId;

    @Schema(description = "拣货开始时间")
    private LocalDateTime pickStartTime;

    @Schema(description = "拣货完成时间")
    private LocalDateTime pickCompleteTime;
}